<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="support.*, java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Provide degrees - Choose discipline</title>
</head>
<body>
<%	String university = request.getParameter("university");
	session.setAttribute("university", university); 
	
	String path = config.getServletContext().getRealPath("majors.txt");
	support s = new support();
	Vector majors = s.getMajors(path);%>
<center>
Please choose or add your discipline:<br>

<%	out.println("<select name=\"sel\"");
	out.println("<option value=\"First\">First</option>");
	for(int i=0; i<majors.size(); i++)
		out.println("<option value=\"" + majors.get(i) + "\">" + majors.get(i) + "</option>");
	out.println("</select>"); 
	%>
</center>
<form method="get" action="">
<p>First name: <input type ="text" size="15" name="firstName" />
</form>
</body>
</html>